package com.wisdomparking.service;

import java.util.List;
import java.util.Map;

import com.wisdomparking.bean.User;

public interface UserService {
	/**
	 * 添加
	 * @param en
	 * @param sign
	 * @return boolean
	 */
	public boolean addUser(User en, boolean sign);
	
	/**
	 * 修改
	 * @param en
	 * @param sign
	 * @return boolean
	 */
	public boolean updateUser(User en, boolean sign);
	
	/**
	 * 删除
	 * @param id
	 * @return boolean
	 */
	public boolean deleteUserById(Integer id);
	
	/**
	 * 查询
	 * @param id
	 * @return User
	 */
	public User getUser(Integer id);
	
	/**
	 * 查询
	 * @param mobileNumber
	 * @return
	 */
	public User getUserByMobileNumber(String mobileNumber);
	
	/**
	 * 查询
	 * @param tempMobile
	 * @return
	 */
	public User getUserByTempMobile(String tempMobile);
	
	/**
	 * 获取对象列表
	 * @param map
	 * @return
	 */
	public List<User> getUserList(Map<String, Object> map);
	
	/**
	 * 获取记录总条数
	 * @param map
	 * @return long
	 */
	public long getCountByUser(Map<String, Object> map);
}
